package com.cg.design.graphicdesignpattern.chainofresponsibility;

/**
 * 表示发生问题的类
 *
 * @program: LeetCode->Trouble
 * @description: 表示发生问题的类
 * @author: cg
 * @create: 2022-03-27 11:13
 **/
public class Trouble {

    /**
     * 问题编号
     */
    private final int number;

    public Trouble(int number) {
        this.number = number;
    }

    public int getNumber() {
        return number;
    }

    @Override
    public String toString() {
        return "[Trouble " + number + ']';
    }
}
